package cn.hyl.design.proxy;

/**
 * IntermediaryImpl 中间人
 *
 * @author hyl
 * @date 2025-06-09
 */
public class IntermediaryImpl implements Buyer{

    private Buyer target;

    public IntermediaryImpl(Buyer target) {
        this.target = target;
    }

    @Override
    public String havealook() {
        // 中介
        System.out.println("找房源");
        System.out.println("找户型");
        System.out.println("找价格");

        //我
        target.havealook();

        //中介
        System.out.println("签约。。");
        System.out.println("签约成功");

        return "";
    }
}
